// http.js 里面
// 现在引入我们的 request.js
import request from "./request.js"

// 接口
 let getData = function(e){
 	 return request.getRequest("/index/api.index/list",e)
 }
 
let getlunbo = function(){
	return request.getRequest('/index/api.index/banner')
}

let getservice_call = function(){
	return request.getRequest('/index/api.index/service_call')
}

let postlog = function(e){
	return request.postRequest('/index/api.agent/login',e)
}
//入驻
let postadd = function(e){
	return request.postRequest('/index/api.agent/add',e)
}
//入驻
let imgspost = function(e){
	return request.postRequest('/index/api.upload/file',e)
}


// id查询接口
 let getidselect = function(e){
 	 return request.getRequest("/index/api.index/info_details",e)
 }
 
 let selectxq = function(e){
	 return request.getRequest('/index/api.index/information',e)
 }
 
 let getphone = function(e){
 	 return request.postRequest('/index/api.agent/info',e)
 }
 
 let postupdate = function(e){
	 return request.postRequest('/index/api.agent/edit',e)
 }
 
 let elpostroot = function(e){
 	 return request.postRequest('/index/api.dls/my_agent',e)
 }
 let loginroot = function(e){
 	 return request.postRequest('/index/api.dls/login',e)
 }

// 最下面记得抛出
export default {
	getData ,
	getlunbo,
	getservice_call,
	postlog,
	postadd,
	imgspost,
	getidselect,
	selectxq,
	getphone,
	postupdate,
	elpostroot,
	loginroot
}
